package com.zjy.financialsystemjavafx.util;

import com.zjy.financialsystemjavafx.model.entity.User;

/**
 * 会话上下文，保存当前登录用户信息
 */
public class SessionContext {
    private static User currentUser;

    public static void setCurrentUser(User user) {
        currentUser = user;
    }

    public static User getCurrentUser() {
        return currentUser;
    }

    public static void clear() {
        currentUser = null;
    }
} 